package com.wenhao.single;

/**
 *
 * 饿汉式重点：构造器私有
 *
 * @author Wenhao Tong
 * @create 2021-08-20 21:00
 */
public class Hungry {
    private static Hungry instance = new Hungry();

    private Hungry() {

    }

    public Hungry getInstance() {
        return instance;
    }
}
